package com.youu.youu.manager.dao;

import java.util.List;

import com.github.abel533.mapper.Mapper;
import com.youu.youu.manager.bean.TPermiss;
import com.youu.youu.manager.bean.TRole;


public interface TPermissMapper extends Mapper<TPermiss> {
	/**
	 * 
	 * @param roles 
	 * @Description (通过多个角色获取权限)
	 * @return
	 */
	List<TPermiss> selectPermissByRoles(List<TRole> roles);
	/**
	 * 
	 * @Description (通过一个角色获取权限)
	 * @param roles
	 * @return
	 */
	List<TPermiss> selectPermissByOneRole(TRole role);
}